import request from "../../request/request";

// 收入
export function list(data){
    return request({
        url:'/accountHead/accountList',
        method:'post',
        data
    })
}

// 审核
export function status(ids, isReverse) {
    return request({
        url: '/accountHead/accountStatus',
        method: 'post',
        data: {
            ids: ids, // 传递 id 数组
            isReverse: isReverse // 传递 isReverse 参数
        }
    });
}

//删除
export function del(id){
    return request({
        url:'/accountHead/accountDelete',
        method:'delete',
        params:{id:id}
    })
}

//查看
export function selectOne(id){
    return request({
        url:'/accountHead/accountSelectOne',
        method:'post',
        params:{id:id}
    })
}

//财务人员下拉
export function selectPersonList(data){
    return request({
        url:'/accountHead/personList',
        method:'get',
        data
    })
}

//操作人员下拉
export function selectUserList(data){
    return request({
        url:'/accountHead/userList',
        method:'get',
        data
    })
}

//往来单位下拉
export function selectOrganizationList(data){
    return request({
        url:'/accountHead/organizationList',
        method:'get',
        data
    })
}

//收入账户下拉
export function selectAccountList(data){
    return request({
        url:'/accountHead/accountList',
        method:'get',
        data
    })
}

//收入单据新增/修改
export function saveOrUpd(data){
    return request({
        url:'/accountHead/accountHeadSaveOrUpd',
        method:'post',
        data
    })
}

//批量删除单据数据
export function dels(ids){
    return request({
        url:'/accountHead/accountHeadDels',
        method:'delete',
        data:ids
    })
}